﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ZLCMS.Web.Wap.Agent
{
    public partial class Footer : System.Web.UI.UserControl
    {

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected bool CheckActive(int id)
        {
            bool result = false;

            string strPage = Request.Path.Substring(Request.Path.LastIndexOf('/') + 1).ToLower();
            if (id == 1)
            {
                result = strPage == "memberlist.aspx";
            }
            else if (id == 2)
            {
                result = strPage == "orderlist.aspx";
            }
            else if (id == 3)
            {
                result = strPage == "salessummary.aspx";
            }
            else if (id == 0)
            {
                result = strPage == "default.aspx";
            }
            return result;
        }
    }
}